//login模块的小仓库
// import {reqCategoryList} from '../../api/index'
import {reqTable} from '../../api/index'
const state={
    List:[]
}
const mutations={
    GETTABLE(state,value){
        state.List=value.records
    }
}
const actions={
   async getTable({commit},params){
       console.log(params);
        // let result= await reqCategoryList();
        let result= await reqTable(params);
        // let result3= await reqskuId(value);
        // let result2= await reqList(params);
        console.log(result);
        if(result.code=='200'){
            commit('GETTABLE',result.data)
           
        }
        
        
            // commit("GETPC",result)
        
        // console.log(result3);
      
    },
}
const getters={}
export default{
    state,
    mutations,
    actions,
    getters
}